import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: [
		{
			path: "/",
			name: "home",
			component: () => import("@/views/index.vue"),
			redirect: "/app",
			children: [
				{
					path: "/app",
					name: "app",
					component: () => import("@/views/app/index.vue"),
				},
			],
		},
		{
			path: "/config",
			name: "config",
			component: () => import("@/views/config/index.vue"),
		},
	],
});

export default router;
